//
//  LBIMMessageHandle.h
//  app
//
//  Created by 刘文扬 on 16/9/7.
//  Copyright © 2016年 广东联结电子商务有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LBBidDiscussIMShowModel.h"
#import "RongIMKit/RongIMKit.h"
typedef NS_ENUM(NSInteger,LBIMMessageType){
    LBIMMessageText,
    LBIMMessageImage,
    LBIMMessageVoice
};

@class LBIMMessageHandle;
@protocol LBIMMessageHandleDelegate <NSObject>

//单聊,群聊都是调用这个,groupId在单聊的时候传对方ID就可以
-(void)LBIMMessageHandle:(LBIMMessageHandle *)lbIMMessageHandle time:(long long)time unReadMessageNumber:(NSInteger)unReadMessageNumber groupId:(NSString *)groupId messageContent:(NSString *)messageContent messageType:(LBIMMessageType)messageType;


@end

@interface LBIMMessageHandle : NSObject

/** 注释*/
@property(nonatomic,weak)id<LBIMMessageHandleDelegate>  delegate;

+(LBBidDiscussIMShowModel *)getDiscussModelByGroupId:(NSString *)groupId;

+(LBBidDiscussIMShowModel *)getDiscussModelByTargetId:(NSString *)targetId;

+(RCMessage *)getLasetMessageByGroupID:(NSString *)groupId;

@end
